Component({
  properties: {
    // 这里定义了innerText属性，属性值可以在组件使用时指定
    innerText: {
      type: String,
      value: 'default value',
    },
    msg:{
      type: Array,
      value:'123'
    }
  },
  data: {
    active: 0,
    show: false,
    
    flag:false,
    list:[{
      projectId:1,
      title:'共享单车',
      ownerId:1,
      nickname:"liuh",
      avatorUrl:'https://img.yzcdn.cn/vant/cat.jpeg',
      videoCover:"",
      abstract:"lorem .....",
      views:'100万',
      likes:"200万",
      status:1
    },{
      projectId:1,
      title:'共享单车',
      ownerId:1,
      nickname:"liuh",
      avatorUrl:'https://img.yzcdn.cn/vant/cat.jpeg',
      videoCover:"",
      abstract:"lorem .....",
      views:'100万',
      likes:"200万",
      status:1
    }]
  },
  methods: {
    // 这里是一个自定义方法
    onChange(event) {
      let that = this
      let show = that.data.show
      that.setData({
        show: !show
      })
    },
    collect(){
      console.log(this.data.msg);
    }

}
})